package com.zzzy.doc.vo.document;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zzzy.doc.dao.entity.Document;
import com.zzzy.doc.dto.DataRegionDto;
import com.zzzy.doc.dto.DataTagDto;
import com.zzzy.sys.dto.DeptInfoDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
public class DocBasicInfoRes extends Document {

    @Schema(description = "主送单位集合")
    private List<DeptInfoDto> mainSendUnitList;

    @Schema(description = "抄送单位集合")
    private List<DeptInfoDto> copySendUnitList;

    @Schema(description = "主送单位字符串")
    private String mainSendUnit;

    @Schema(description = "抄送单位字符串")
    private String copySendUnit;

    @Schema(description = "文件模板名称")
    private String templateName;

    @Schema(description = "呈批表全部可编辑区域")
    @TableField(value = "approval_data_regions", typeHandler = JacksonTypeHandler.class)
    private List<DataRegionDto> approvalDataRegions;

    @Schema(description = "正文预置数据标签")
    @TableField(value = "main_init_data_tags", typeHandler = JacksonTypeHandler.class)
    private List<DataTagDto> mainInitDataTags;

    @Schema(description = "呈批中的修订痕迹数量")
    private Integer approvalRevisionCount;

    @Schema(description = "正文中的修订痕迹数量")
    private Integer mainRevisionCount;
}
